package com.example.shop_2211.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.base.entity.Reply
import com.example.shop_2211.R
import com.example.shop_2211.utils.GlideUtils

class ReplyAdapter:BaseQuickAdapter<Reply,BaseViewHolder>(R.layout.item_reply) {
    override fun convert(holder: BaseViewHolder, item: Reply) {
        GlideUtils.loadCircleImage(context,item.avatar,holder.getView(R.id.reply_image))
        holder.setText(R.id.reply_username,item.nickname)
        holder.setText(R.id.reply_content,item.comment)
        holder.setText(R.id.reply_time,item.createTime)
    }
}